<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 18:04   
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<c:set var="dashboardMenuTag" value="myOrg" scope="request"></c:set>

<!Doctype html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>政府数据开放平台</title>
    <jsp:include page="../commons/include.jsp"/>

    <link href="/resources/css/lib.css" rel="stylesheet">


    <style>
        * {
            font-family: '宋体';
        }

        #main {
            background: #FFF;
            width: 1000px;
            overflow: auto;
            height: auto;
            margin: auto;
            font-family: '宋体';
            background: rgb(255, 255, 255);

            margin: 50px auto 0 auto;

        }

        #main .left {
            border: 0px;
        }

        .orgList_ul {
            width: 100%;

            padding: 10px 42px;
            overflow: auto;

        }

        .orgList_ul .orgList_li {
            width: 200px;
            height: 200px;
            border: 1px solid rgb(220, 220, 230);
            float: left;
            margin: 0px;
            border-radius: 3px;
        }

        .orgList_ul .orgList_li .orgList_img {
            width: 180px;
            height: 120px;
            background: #aae;
            margin: 8px;
        }

        .orgList_ul .orgList_li .orgList_img img {
            width: 180px;
            height: 120px;
        }

        .orgList_ul .orgList_li .orgList_name {
            font-size: 14px;
            font-weight: bold;
            padding-left: 12px;

        }

        .orgList_ul .orgList_li .orgList_total {
            padding-left: 12px;
            padding-top: 10px;
            color: rgb(123, 123, 123);
        }

        .orgList_ul .orgList_li:hover {
            border: 1px solid rgb(0, 220, 230);
            -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
    </style>

    <script>
        $(function () {

        });
    </script>


</head>
<body>


<jsp:include page="../commons/top.jsp"/>


<div id="main">

    <div style="border-bottom: 1px solid #dddddd">
        <ol class="breadcrumb">
            <li><a href="/">首页</a></li>
            <li><a href="/front/org/list">组织</a></li>
        </ol>
    </div>

    <div class="left">
        <div>
            <div class="title">什么是组织？</div>
            <div class="content">
                <div style="width: 100%; height: 150px; border: 1px solid #eeeeee">
                    组织用于创建，管理和发布数据集的集合。用户可以在组织内有不同的角色，取决于授权的创建，编辑和发布的权限。
                </div>

            </div>
        </div>


    </div>


    <div class="right" style=" width: 700px;height: auto; min-height: 600px">


        <div style="height: 150px;">
            <form method="get" action="/front/org/list">
                <div class="col-lg-6" style="padding: 30px 50px;">
                    <div class="input-group" style="width: 430px;">
                        <input type="text" name="name" class="form-control" style="width: 400px"
                               value="${requestScope.name}">
                         <span class="input-group-btn">

           <button class="btn btn-default" type="submit">搜 索</button>
                        </span>
                    </div>
                </div>


                <div style="clear: both; height: 60px;">
                    <div style="float:left; width: 266px; height: 100%; font-size: 18px; font-weight: bold; padding-left: 50px;">
                        共找到${fn:length(requestScope.result.pageResult.rows)}个组织
                    </div>
                    <div style="float: left; width: 400px;height: 100% font-size: 22px; font-weight: bold;">排序：
                        <select class="form-control" name="order" style="width: 200px; display: inline">
                            <option value="asc">名称升序</option>
                            <option value="desc" <c:if test="${requestScope.order=='desc'}">selected="selected" </c:if>>
                                名称降序
                            </option>
                        </select></div>
                </div>
            </form>


        </div>


        <div class="orgList_ul">
            <c:forEach items="${requestScope.result.pageResult.rows}" var="org">
                <a href="/front/org/detail?id=${org.id}" >
                    <div class="orgList_li" title="${org.description}" style="margin: 2px">
                        <div class="orgList_img"><img src="${org.headimage}"></div>
                        <div class="orgList_name">${org.name}</div>
                        <div class="orgList_total">${org.description}</div>
                    </div>
                </a>
            </c:forEach>


        </div>
    </div>
</div>


</div>


<jsp:include page="../commons/buttom.jsp"/>
</body>
</html>
